package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MapperStatement;

import java.util.List;

public interface Executor {

    public <E>List<E> query(MapperStatement  mapperStatement, Object...params) throws Exception;

    public int update(MapperStatement  mapperStatement, Object param) throws Exception;

    public int deleteById(MapperStatement  mapperStatement, Integer id) throws Exception;

}
